import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/jhclothing";

// 查询布料出库列表
export function listFabricOutbound(query) {
  return request({
    url: '/outbound/fabric/list',
    method: 'get',
    params: query
  })
}

// 查询布料出库详细
export function getFabricOutbound(fabricOutboundId) {
  return request({
    url: '/outbound/fabric/' + parseStrEmpty(fabricOutboundId),
    method: 'get'
  })
}

// 新增布料出库
export function addFabricOutbound(data) {
  return request({
    url: '/outbound/fabric',
    method: 'post',
    data: data
  })
}

// 修改布料出库
export function updateFabricOutbound(data) {
  return request({
    url: '/outbound/fabric',
    method: 'put',
    data: data
  })
}

// 删除布料出库
export function delFabricOutbound(fabricOutboundId) {
  return request({
    url: '/outbound/fabric/' + fabricOutboundId,
    method: 'delete'
  })
}
